home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / GrowBoxDock / Sources / GXFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-18  |  2.8 KB  |  120 lines

  1. /*
  2.     File:        GXFile.h
  3.  
  4.     Contains:    GX print file support for simple text application
  5.  
  6.     Version:    SimpleText 1.4 or later
  7.  
  8.     Written by:    Tom Dowdy
  9.  
  10.     Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  11.  
  12.     File Ownership:
  13.  
  14.         DRI:                Tom Dowdy
  15.  
  16.         Other Contact:        Jim Negrette
  17.  
  18.         Technology:            Macintosh Graphics Group
  19.  
  20.     Writers:
  21.  
  22.         (ted)    Tom Dowdy
  23.         (TD)    Tom Dowdy
  24.  
  25.     Change History (most recent first):
  26.  
  27.     $Log: GXFile.h,v $
  28.     Revision 1.1.1.1  1998/03/18 22:56:10  ivory
  29.     Initial checkin of SimpleText.
  30.     
  31.         
  32.         1     7/28/97 11:18 AM Duane Byram
  33.         first added to Source Safe project
  34.  
  35.          <5>     10/5/95    ted        fixing hilight for rotated shapes
  36.          <4>     10/2/95    TD        adding in other selections for editing
  37.          <3>     9/11/95    TD        adding more markup graphics
  38.          <2>      9/8/95    TD        started annotation
  39.          <1>     8/21/95    TD        First checked in.
  40.  
  41. */
  42.  
  43. #include "SimpleText.h"
  44.  
  45. #define kGotoPageDialogID         kGXBaseID
  46.  
  47. #define kLabelString            kGXBaseID
  48. #define kPageControlStrings        kGXBaseID+1
  49.     #define iGoToPageString            1
  50.     
  51. #define kPageControlPlain        kGXBaseID
  52. #define kPageControlRight        kPageControlPlain+1
  53. #define kPageControlLeft        kPageControlPlain+2
  54.  
  55. #define kZoomControlPlain        kGXBaseID+3
  56. #define kZoomControlRight        kZoomControlPlain+1
  57. #define kZoomControlLeft        kZoomControlPlain+2
  58.  
  59. #define kGXPopUpMenu            kGXBaseID
  60.     #define i50                        1
  61.     #define i100                    2
  62.     #define i112                    3
  63.     #define i150                    4
  64.     #define i200                    5
  65.     #define i400                    6
  66.     #define iScaleToFit                8
  67.     #define iDontShowMargins        10
  68.     
  69. #define kGXToolMenu                kGXBaseID+1
  70.     #define kIconBase                256
  71.     #define kSelectionTool            1
  72.     #define kRedMarkerTool            2
  73.  
  74. #ifndef REZ
  75.     
  76.     struct GXDataRecord
  77.         {
  78.         WindowDataRecord        w;
  79.         
  80.         gxViewPort                parentViewPort;        // viewPort in the window
  81.         gxViewPort                childViewPort;        // viewPort inset from the other
  82.         
  83.         gxPrintFile                thePrintFile;
  84.         short                    printFileRefNum;
  85.         
  86.         long                    numberOfPages;        // # of pages in this document
  87.         long                    currentPage;        // currently visible page #
  88.         Fixed                    zoomFactor;            // current zoom factor
  89.         Boolean                    dontShowMargins;    // don't show page margins
  90.  
  91.         // mode when user clicks in content
  92.         short                    contentClickMode;
  93.  
  94.         // current selection information
  95.         Rect                    selectionRectangle;
  96.         short                    patternPhase;
  97.         
  98.         // filled in during drag to avoid multiple shape traversals
  99.         gxShape                    tempDragShape;
  100.         
  101.         // current page and format information
  102.         gxShape                    currentPageShape;
  103.         gxFormat                currentPageFormat;
  104.  
  105.         // filled in during shape traverse to locate the desired starting "index"
  106.         long                    tempSearchIndex;
  107.         
  108.         // fields for currently selected item in the search
  109.         long                     currentShapeIndex;
  110.         long                    currentShapeStart;
  111.         long                    currentShapeEnd;
  112.         gxShape                 currentSelectionShape;
  113.         gxMapping                currentSelectionMapping;
  114.         
  115.         // fields for annotation pictures
  116.         gxShape                    ** pageAnnotations;
  117.         };
  118.     typedef struct GXDataRecord GXDataRecord, *GXDataPtr;    
  119. #endif
  120.